/**
 * 
 */
package cn.kuaipai.weibo.constants;

/**
 * HTTP请求方法
 * 
 * @author zy
 */
public enum HttpMethod {

	GET, POST, INPUT, DELETE, HEAD, TRACE;

	public String getValue() {
		switch (this) {
		case GET:
			return "GET";
		case POST:
			return "POST";
		case INPUT:
			return "INPUT";
		case DELETE:
			return "DELETE";
		case HEAD:
			return "HEAD";
		case TRACE:
			return "TRACE";
		default:
			throw new RuntimeException("没有对象的请求方法类型");
		}

	}
}
